<?php

require_once './application/core/Dashboard/monitorCore.php';

class ActionCore extends TopologieCore
{

    private $_composantDb;
    private $_name;
    private $_obj;
    private $_compo;

    public function __construct(&$controller)
    {
        parent::__construct($controller);
        $this->_composantDb = new TableComposant();
    }

    Public function addmonitor()
    {
        $this->_name = $this->_controller->getRequest()->getParam('name');
        $this->_compo = $this->_composantDb->getComposantName($this->_name);
        $this->_obj = new monitorCore($controller);
        $this->_obj->ajouterMoniteurAction($this->_name, $this->_compo[0]['Ip']);
    }

}